//
//  ViewController.m
//  InpuStudentInfo
//
//  Created by xuziyuan on 13-12-5.
//  Copyright (c) 2013年 student. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)bntPressed:(id)sender
{
    self.outMessage.text = [NSString stringWithFormat:@"%@\n%@",self.InfoName.text,self.InfoAge.text];
    
    self.InfoName.text = @"";
    self.InfoAge.text =  @"";
    
    [self.InfoName resignFirstResponder];
    [self.InfoAge resignFirstResponder];
}
@end
